import Vue from 'vue'
import App from './App'
import store from '@/store'
import uviewUi from 'uview-ui'
import httpApi from '@/api/http.api'
import httpInterceptor from '@/api/http.interceptor'
import Toast from '@/libs/tips/toast'
import Loading from '@/libs/tips/loading'
import Dialog from '@/libs/tips/dialog'

Vue.use(uviewUi)
Vue.use(Toast)
Vue.use(Loading)
Vue.use(Dialog)
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  ...App,
  store
})

Vue.use(httpApi, app)
Vue.use(httpInterceptor, app)

app.$mount()
